package com.ruoyi.system.api;


import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.Student;
import com.ruoyi.system.api.factory.RemoteTeachFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 学生服务
 */

@FeignClient(contextId = "remoteTeachService", path = "/studentManage",value = ServiceNameConstants.TEACH_SERVICE, fallbackFactory = RemoteTeachFallbackFactory.class)
public interface RemoteTeachService {
    @PostMapping("/remoteInsert")
    public R remoteInsert(@RequestBody Student student);
}
